var customerColumns23 = [{
    id: 'area',
    title: '区域',
    type: 'string',
    columnClass: 'text-center',
    resolution: function (value) {
        var content = '';
        if (value=="HD"){
            content ="华东";
        }else if (value=="HB"){
            content = "华北";
        }else if (value=="DB"){
            content = "东北";
        }else if (value=="HZE"){
            content = "华中二";
        }else if (value=="XN"){
            content = "西南";
        }else if (value=="HN"){
            content = "华南";
        }else if (value=="HZY"){
            content = "华中一";
        }else if (value=="GW"){
            content = "国外";
        }
        return content;
    }
},{
	id: 'com_name',
	title: '客户名称',
	type: 'string',
	// width: 100,
	columnClass: 'text-center'
},
{
	id: 'com_type',
	title: '客户类型',
	type: 'string',
	width: 100,
	columnClass: 'text-center'
},
{
	id: 'industry',
	title: '行业',
	type: 'string',
	width: 100,
	columnClass: 'text-center'
},
{
	id: 'address',
	title: '地址',
	type: 'string',
	columnClass: 'text-left',
	hideType: 'lg|md|sm|xs',
},
{
	id: 'telephone',
	title: '联系方式',
	type: 'string',
	width: 110,
	columnClass: 'text-center'
},
{
	id: 'user_name',
	title: '我司负责人',
	type: 'string',
	width: 100,
	columnClass: 'text-center'
},
{
	id: 'operation',
	title: '操作',
	type: 'string',
	width: 300,
	columnClass: 'text-center',
	resolution: function (value, record) {
		var content = '';
		if (record.isN !=''){
            content += '<button class="btn btn-xs btn-success" onclick="selsu1(' + record.id + ');"><i class="icon-edit"></i>  更新客户信息</button>';
            content += '  ';
        }
		content += '<button class="btn btn-xs btn-primary" onclick="selist(' + record.id + ');"><i class="icon-eye-open"></i>  查看联系人</button>';
		content += '  ';
		content += '<button class="btn btn-xs btn-info" onclick="selsut(' + record.id + ');"><i class="icon-plus"></i>  添加联系人</button>';
		return content;
	}
}
];

function findCusList($certusUtils) {
	$("#customerContainer1").empty();
	$("#customerToolBarContainer1").empty();
	$certusUtils.ajax("findProComList", {
		"projId": proId
	}, function (response) {
		var proinOption = {
			lang: 'zh-cn',
			ajaxLoad: false,
			// loadURL:'url',
			exportFileName: '客户管理',
			datas: response.data,
			columns: customerColumns23,
			extraWidth: 20,
			gridContainer: 'customerContainer1',
			toolbarContainer: 'customerToolBarContainer1',
			tools: '',
			pageSize: 10,
			pageSizeLimit: [10, 15, 20]
		};
		var proinGrid = $.fn.dlshouwen.grid.init(proinOption);
		proinGrid.load();
	});
}

function selist(id) {
	toLoadHtml(6, id);
};
//更新客户信息
function selsu1(id) {
	toLoadHtml(7, id);
};

function selsut(id) {
	toLoadHtml(8, id);
}